# __author__ = 'heyin'
# __date__ = '2018/12/7 14:57'

from pyecharts import Tree

tree = Tree("树图示例")
data = [{
    "name": "企业活跃度模型",
    "value": '企业活跃度',
    "children": [
        {
            "name": "企业属性：20%",
            "value": "企业属性指标的描述信息",
            "children": [
                {
                    "name": "地税纳税：20%",
                    "value": "地税纳税指标的描述信息",
                }
            ]
        },
        {
            "name": "经营活动：20%",
            "value": "经营活动指标的描述信息",
            "children": [
                {
                    "name": "企业状态：20%",
                    "value": "企业状态指标的描述信息"
                }
            ]
        },
        {
            "name": "经营行为：20%",
            "value": "经营行为指标的描述信息",
        },
    ]
}]
tree.add("", data)
tree.render()
